import Vue from 'vue'
import Router from 'vue-router'
import index_second from './index_second'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/index',
      name: 'Index',
      alias: '/',
      redirect: '/index/blog',
      component: resolve => require(['@/components/page/index'], resolve),
      children: index_second
    }, {
      path: '/login',
      name: 'Login',
      component: resolve => require(['@/components/login'], resolve)
    }, {
      path: '/admin',
      name: 'adminIndex',
      component: resolve => require(['@/components/admin/index'], resolve)
    }
  ]
})
